Provides the interface to the functions in the bnlearn package for network diagnostics of an object of class bayesvl
.
# Interface to bn.fit function to fit the parameters of
# a Bayesian network conditional on its structure.
bvl_bnBayes(dag, data = NULL, method = "bayes", iss = 10, ...)# Interface to bnlearn score function to compute the score of the Bayesian network.
bvl_bnScore(dag, data = NULL, ...)
# Interface to arc.strength function to measure the strength of the probabilistic
# relationships expressed by the arcs of a Bayesian network.
bvl_bnStrength(dag, data = NULL, criterion = "x2", ...)
# Interface to bn.fit.barchart function to plot fit
# the parameters of a Bayesian network conditional on its structure.
bvl_bnBarchart(dag, data = NULL, method = "bayes", iss = 10, ...)
an object of class bayesvl
a data frame containing the variables in the model.
a character string, either mle for Maximum Likelihood parameter estimation or bayes for Bayesian parameter estimation (currently implemented only for discrete data).
a numeric value, the imaginary sample size used by the bayes method to estimate the conditional probability tables associated with discrete nodes
a character string, the method using for measuring
extra arguments from the generic method
bvl_bnScore()
return a number, value of score.
For documentation, case studies and worked examples, and other tutorial information visit the References section on our Github: